import request from '@/utils/request'
// 分类：获取文章分类
export const articleGetArticleSortService = () =>
  request.get('/article/sort/select')
// 分类：添加文章分类
export const articleAddChannelService = (data) =>
  request.post('/article/sort/insert', data)
// 分类：编辑文章分类
export const articleEdiChannelService = (data) =>
  request.put('/article/sort/update', data)
// 分类：删除文章分类
export const articleDelChannelService = (id) =>
  request.delete('/article/sort/delete', {
    params: { id }
  })

// 文章：获取文章列表
export const artGetListService = (params) =>
  request.get('/article/list', {
    params
  })
